<!-- 我的弹窗 -->

<template>
  <WebModal small>
    <WebForm>
      <FormPhoto label="图片" bind="picture" folder="meeting" half required />

      <FormInput label="会议室名称" bind="name" required />

      <FormNum label="容纳人数" bind="capacity" :min="2" :max="999" :init="5" half required />

      <FormCheckbox
        label="提供设备"
        bind="deviceDictCodes, deviceDictNames"
        :dict="CORE.DICT.meeting_device_code"
        join
      />

      <FormTree :label="`所属${CORE.MAP.REGION}`" bind="areaId, areaName" :dict="CORE.REGION.DICT" allName required />

      <FormStatus isRadio initFirst required />
    </WebForm>
  </WebModal>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyModal',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
